<template>
  <DatePicker :model-value="modelValue" :format="format" :disabled="disabled" :type="type" @change="change"
    @input="input">
  </DatePicker>
</template>
<script>
export default {
  name: "PaasDate",
  props: {
    multiple: {
      default: false,
    },
    disabled: {
      default: false,
    },
    modelValue: "",
    format: {
      default: "YYYY-MM-DD",
    },
    type: {
      default: "date",
    },
  },
  data() {
    return {};
  },
  methods: {
    input(data) {
      this.$emit("update:modelValue", data);
      this.$emit("input", data);
    },
    change(data) {
      this.$emit("update:modelValue", data);
      this.$emit("change", data);
    }
  },
};
</script>